package com.yanchengtect.demo.progress.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yanchengtect.demo.progress.service.ProgressService;


/**
* @author 文心雕龙 Email：xuwenlong@shike8888.com
* @version 创建时间：2018年8月30日 上午10:50:03
* 类说明:api接口类
*/
@RestController
@RequestMapping("api")
public class ApiController {
	
	@Autowired
	ProgressService proService;

	@RequestMapping("start")
	public void startProgress(String key) {
		proService.start(key);
	}
	
	@RequestMapping("progress")
	public String getProgress(String key) {
		
		return  proService.getProgress(key);
	}
	
	
}
